from . import views
from django.conf.urls import url

urlpatterns = [
    url(r'^areas/$', views.AreasView.as_view()), # 获取省信息
    url(r'^areas/(?P<pk>\d+)/$', views.AreaView.as_view()), # 获取市和区的信息
    url(r'^addresses/$', views.AddressView.as_view()), # 保存地址
    url(r'^addresses/(?P<pk>\d+)/$', views.AddressView.as_view()), # 更新地址
]
